home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
422_03
/
pcutils.doc
< prev
next >
Wrap
Text File
|
1994-02-14
|
50KB
|
1,378 lines
P C
Utilities
A set of useful
Utility Programs
For the
IBM Personal Computer
Release 1.3
Revised: 29-Jul-90
Copyright 1983,1990 Dave Dunfield
All rights Reserved
PC Utilities Page: 1
1. INTRODUCTION
PC Utilities is a collection of small but useful utility programs
for the IBM PC under MS-DOS.
Included in the package are:
CHATTR - Change file attributes.
DIFF - Compare two text files and report differences.
DR - Scan a directory tree for OLDest and NEWest file
DUMP - HEX or OCTAL dump of file(s) contents.
DUS - Disk Usage Summary
EDT - A screen oriented text editor.
EXTRACT - Extact a section from a larger file.
FDIR - A screen oriented directory shell.
FSCAN - Scan for altered files.
HEXED - A screen oriented binary editor.
LOCATE - Search for text strings.
OFF - CRT screen saved.
RETAB - Retabulate files to different tab stops.
SIZE - Display size of file(s) in lines/characters.
TIMEIT - Times the execution of another command.
TYPESET - An ASCII document formatter.
WDIR - Walk a directory & execute commands.
The following pages contain detailed descriptions of each utility
program, and its operating syntax.
The PCUTILS "package" (software and documentation) is copyrighted,
and may not be re-distributed for profit or other commercial purposes
without my written permission. If you find PCUTILS useful, please
help me continue to support and enhance it by sending a
"registration" fee of $24.95 to this address:
Dunfield Development Systems
P.O. Box 31044
Nepean, Ontario (Canada)
K2B 8S8
Please make your cheque or money order payable to "David or
Sharleen Dunfield". If you choose not to order the complete PCUTILS
package, please discontinue using PCUTILS within thirty days.
PCUTILS is provided on an "as is" basis, with no warranty of any
kind. In no event shall the author be liable for any damages arising
from its use or distribution.
PC Utilities - CHATTR Page: 2
2. CHATTR - Change file attributes
CHATTR is a simple utility program which allows you to easily set
the attribytes of DOS files.
The form of the CHATTR command is:
CHATTR <filespec> <+|-attribute ...>
The available attributes are:
+/-A - Add/Remove ARCHIVE bit
+/-H - Add/Remove HIDDEN bit
+/-R - Add/Remove READ-ONLY bit
+/-S - Add/Remove SYSTEM bit
Examples:
chattr *.* -a
chattr \dos\*.* +r
chattr C:\command.com +h +r
PC Utilities - DIFF Page: 3
3. DIFF - A file compare program
DIFF is a program which taks two text files, and performs a
line-by-line comparison of them. If more than one differing line is
found, DIFF considers and reports this is a single difference. The
'r=' parameter controls how many identical lines DIFF must find in
the file before it considers a difference to be ended.
Any time a difference is found between the files, DIFF displays
the line numbers indicating where the difference occurs, followed by
the differing lines from the first file (Preceeded by '<'), and the
differing lines from the second file (Precceded by '>').
The form of the DIFF command is:
DIFF <file1> <file2> [options ...]
The available options are:
-d - Inhibit display of differing lines
-l - Inhibit display of line numbers
r=num - Specify minimum # of lines to re-synchronize
Examples:
diff program.asm program.bak
PC Utilities - DR Page: 4
4. DR - Date Ranger
DR is a utility which will quickly scan a disk or directory, and
report on the oldest and newest files it finds. It is quite useful
for determing the last date/time a change was made etc.
The form of the DR command is:
DR <directory ...> [options ...]
The available options are:
-? or ? - Display help info.
-h - Exclude HIDDEN files
-n - Inhibit display of NEWest file
-o - Inhibit display of OLDest file
-r - Inhibit recursion into sub-directories
-s - Exclude SYSTEM files
-v - Inhibit startup message (header)
Examples:
dr c:\myprogs
PC Utilities - DUMP Page: 5
5. DUMP - File dump
DUMP is a utility which displays the contents of one or more files
in either HEX/ASCII or OCTAL/ASCII "dump" format. Wildcards (*,?) are
allowed in filenames.
The form of the DUMP command is:
DUMP <filename ...> [options ...]
The available options are:
-f - Pause between each file
-o - Use OCTAL dump (default is HEX)
-p - Pause between each block
Examples:
dump myprog.obj -p
dump *.COM -f -o
PC Utilities - DUS Page: 6
6. DUS - Disk Use Summary
The DUS utility scans a disk or directory tree, and reports on the
disk space used within each subdirectory. A "Cumulative" option
allows DUS to report the total space under each directory, which
includes the contents of any subdirectories.
The form of the DUS command is:
DUS <directory ...> [options ...]
The available options are:
-? or ? - Display help info.
-c - Produce CUMULATIVE display
-d - Inhibit individual display (total only)
-h - Exclude HIDDEN files
-p - Pause between each output page
-r - Inhibit recursion into sub-directories
-s - Exclude SYSTEM files
-v - Inhibit startup message (header)
Examples:
dus c:\
dus c:\ d:\ -c
dus d:\archive -c
PC Utilities - EDT Page: 7
7. EDT - Text editor
7.1 Introduction
EDT is a fully featured, in-memory, text editor. It operates in
either a line-by-line, or a visual screen format.
In line-by-line mode, EDT performs no direct screen accesses,
and may be operated over a serial port using CTTY.
EDT is invoked with the command 'EDT <filename>'. If the named
file already exists, EDT will load and edit it, otherwise a blank
file is presented. If the optional '-v' qualifier is